﻿using Photon.SocketServer;
using TaiDouPhotonServer;
using TaiDouCommon;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TaiDouPhotonServer.Handlers
{
    //协议处理基类
    abstract class HandlerBase
    {
        public HandlerBase() {
            TaiDouApplication.Instance.RegisterHandler(OpCode, this);
        }
        public abstract OperationResponse OnHandleMessage(OperationRequest request, ClientPeer peer);
        public abstract OperationCode OpCode{get;}
    }
}
